<script setup>
import {ref, reactive} from "vue";
import ing from "../../../assets/home_bg.jpg";
const data = reactive({
  img: [{url: ing}],
});
</script>

<template>
  <div style="height: 600px">
    <el-carousel height="600px" :interval="5000" arrow="always">
      <el-carousel-item v-for="item in data.img" :key="item">
        <img style="width: 100%; height: 100%" :src="item.url" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<style scoped>
/* .el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
  text-align: center;
} */

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
